import request from '@/utils/request'
// 订单结算
export const checkoutOrder = (params) => {
  // alert(JSON.stringify(params))
  return request.get('/checkout/order', { params })
}

// 提交订单
export const checkout = (params) => {
  return request.post('/checkout/submit', params)
}

// 我的订单
export const orderList = (params) => {
  return request.get('/order/list', { params })
}

// 订单详情
export const orderDetail = (orderId) => {
  return request.get('/order/detail', { params: { orderId } })
}

// 取消订单
export const cancelOrder = (orderId) => {
  return request.post('/order/cancel', { orderId })
}
